<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>AndBase开发框架: com.ab.adapter.AbViewPagerAdapter类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="ic_launcher.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">AndBase开发框架
   &#160;<span id="projectnumber">1.6</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>命名空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>页</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecom.html">com</a></li><li class="navelem"><a class="el" href="namespacecom_1_1ab.html">ab</a></li><li class="navelem"><a class="el" href="namespacecom_1_1ab_1_1adapter.html">adapter</a></li><li class="navelem"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html">AbViewPagerAdapter</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">com.ab.adapter.AbViewPagerAdapter类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 com.ab.adapter.AbViewPagerAdapter 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.png" usemap="#com.ab.adapter.AbViewPagerAdapter_map" alt=""/>
  <map id="com.ab.adapter.AbViewPagerAdapter_map" name="com.ab.adapter.AbViewPagerAdapter_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a053f33d6b36b9c3898b496cb3293ec40"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#a053f33d6b36b9c3898b496cb3293ec40">AbViewPagerAdapter</a> (Context context, ArrayList&lt; View &gt; <a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#a12baf572f4ee1ab15ebf184ac59a63fd">mListViews</a>)</td></tr>
<tr class="separator:a053f33d6b36b9c3898b496cb3293ec40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a578324831b3a18e988c5c7fd6e2a0d3c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#a578324831b3a18e988c5c7fd6e2a0d3c">getCount</a> ()</td></tr>
<tr class="separator:a578324831b3a18e988c5c7fd6e2a0d3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a219114439e34f4418b283dcb623b7e4e"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#a219114439e34f4418b283dcb623b7e4e">isViewFromObject</a> (View arg0, Object arg1)</td></tr>
<tr class="separator:a219114439e34f4418b283dcb623b7e4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a23c13e50c03a901827e33d59aeaf83"><td class="memItemLeft" align="right" valign="top">Object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#a1a23c13e50c03a901827e33d59aeaf83">instantiateItem</a> (View container, int position)</td></tr>
<tr class="separator:a1a23c13e50c03a901827e33d59aeaf83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c13d29eaa2c39f991ca2dbba02eb254"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#a5c13d29eaa2c39f991ca2dbba02eb254">destroyItem</a> (View container, int position, Object object)</td></tr>
<tr class="separator:a5c13d29eaa2c39f991ca2dbba02eb254"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0f28333f06074d05708298bfda230d3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#af0f28333f06074d05708298bfda230d3">getItemPosition</a> (Object object)</td></tr>
<tr class="separator:af0f28333f06074d05708298bfda230d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:aeb34b38470bbed80bdbd20f2819fd018"><td class="memItemLeft" align="right" valign="top">Context&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#aeb34b38470bbed80bdbd20f2819fd018">mContext</a></td></tr>
<tr class="separator:aeb34b38470bbed80bdbd20f2819fd018"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12baf572f4ee1ab15ebf184ac59a63fd"><td class="memItemLeft" align="right" valign="top">ArrayList&lt; View &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#a12baf572f4ee1ab15ebf184ac59a63fd">mListViews</a> = null</td></tr>
<tr class="separator:a12baf572f4ee1ab15ebf184ac59a63fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4fa5bbb0c0a7812a53f546686022197"><td class="memItemLeft" align="right" valign="top">HashMap&lt; Integer, View &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1adapter_1_1_ab_view_pager_adapter.html#ad4fa5bbb0c0a7812a53f546686022197">mViews</a> = null</td></tr>
<tr class="separator:ad4fa5bbb0c0a7812a53f546686022197"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>© 2012 amsoft.cn 名称：AbViewPagerAdapter.java 描述：一个通用的ViewPager适配器</p>
<dl class="section author"><dt>作者</dt><dd>还如一梦中 </dd></dl>
<dl class="section version"><dt>版本</dt><dd>v1.0 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>：2013-11-28 上午10:58:26 </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a053f33d6b36b9c3898b496cb3293ec40"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">com.ab.adapter.AbViewPagerAdapter.AbViewPagerAdapter </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ArrayList&lt; View &gt;&#160;</td>
          <td class="paramname"><em>mListViews</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Instantiates a new ab view pager adapter. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>the context </td></tr>
    <tr><td class="paramname">mListViews</td><td>the m list views </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a5c13d29eaa2c39f991ca2dbba02eb254"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.ab.adapter.AbViewPagerAdapter.destroyItem </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>container</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>object</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：移除View.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">container</td><td>the container </td></tr>
    <tr><td class="paramname">position</td><td>the position </td></tr>
    <tr><td class="paramname">object</td><td>the object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd>android.support.v4.view.PagerAdapter::destroyItem(android.view.View, int, java.lang.Object) </dd></dl>

</div>
</div>
<a class="anchor" id="a578324831b3a18e988c5c7fd6e2a0d3c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.ab.adapter.AbViewPagerAdapter.getCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：获取数量.</p>
<dl class="section return"><dt>返回</dt><dd>the count </dd></dl>
<dl class="section see"><dt>参见</dt><dd>android.support.v4.view.PagerAdapter::getCount() </dd></dl>

</div>
</div>
<a class="anchor" id="af0f28333f06074d05708298bfda230d3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.ab.adapter.AbViewPagerAdapter.getItemPosition </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>object</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：很重要，否则不能notifyDataSetChanged.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td>the object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>the item position </dd></dl>
<dl class="section see"><dt>参见</dt><dd>android.support.v4.view.PagerAdapter::getItemPosition(java.lang.Object) </dd></dl>

</div>
</div>
<a class="anchor" id="a1a23c13e50c03a901827e33d59aeaf83"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Object com.ab.adapter.AbViewPagerAdapter.instantiateItem </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>container</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：显示View.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">container</td><td>the container </td></tr>
    <tr><td class="paramname">position</td><td>the position </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>the object </dd></dl>
<dl class="section see"><dt>参见</dt><dd>android.support.v4.view.PagerAdapter::instantiateItem(android.view.View, int) </dd></dl>

</div>
</div>
<a class="anchor" id="a219114439e34f4418b283dcb623b7e4e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.ab.adapter.AbViewPagerAdapter.isViewFromObject </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>arg0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>arg1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：Object是否对应这个View.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">arg0</td><td>the arg0 </td></tr>
    <tr><td class="paramname">arg1</td><td>the arg1 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true, if is view from object </dd></dl>
<dl class="section see"><dt>参见</dt><dd>android.support.v4.view.PagerAdapter::isViewFromObject(android.view.View, java.lang.Object) </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a class="anchor" id="aeb34b38470bbed80bdbd20f2819fd018"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Context com.ab.adapter.AbViewPagerAdapter.mContext</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The m context. </p>

</div>
</div>
<a class="anchor" id="a12baf572f4ee1ab15ebf184ac59a63fd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ArrayList&lt;View&gt; com.ab.adapter.AbViewPagerAdapter.mListViews = null</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The m list views. </p>

</div>
</div>
<a class="anchor" id="ad4fa5bbb0c0a7812a53f546686022197"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">HashMap&lt;Integer,View&gt; com.ab.adapter.AbViewPagerAdapter.mViews = null</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The m views. </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/com/ab/adapter/<a class="el" href="_ab_view_pager_adapter_8java.html">AbViewPagerAdapter.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2014年 十一月 6日 星期四 11:22:01 , 为 AndBase开发框架使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
